package com.itheima.dao;

import com.itheima.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(Integer userId);

    @Select("select * from t_role ")
    List<Role> findAll();
    @Select("select role_id from t_user_role where user_id=#{roleId}")
    List<Integer> findByRoleId(Integer roleId);
}
